{#include file="top.php"#}
			<div class="body">
				<div class="main">

					<div class="basic_info b_box">
						<div class="hd">
							<h2 class="hd_title">基本資料</h2>
						</div>
						<form id="form1" enctype="multipart/form-data" action="member.php?action=forgetPassword" method="POST">
						<div class="bd">
							<div class="basic_info_box">
								<p class="c_title">
									忘記密碼
								</p>
								<p class="name_p">
									email
								</p>
								<input type="text" class="info_ipt_text" value=""  name="email" id="email" />
								<p style="display:none;"  id="email_tip"  class="tip" >
									<em class="hack"></em>
									<a class="close" href="#"> <span></span> </a>
									<span id="email_tip_text">{#$ERR_EMAIL#}</span>
								</p>
								</div>
							</div>
							<div class="other_login" style="top:50px">

								
							</div>
						</div>
														
								<input name="toURL" type="hidden" value="{#$toURL#}" />
								<p><a class="btn_s btn_s_next" style="cursor:pointer"  onclick="check_register();"><strong>下一步</strong></a>
								 
								<a class="btn_s btn_s_reg" href="member.php?action=reg&toURL=/"><strong>註冊</strong></a> 
								</p>
							</form>	
						</div>
					</div>	
								
						<!-- main-->
				<div class="sidebar">
					{#show_block('b2',1,'','sidebar_ad')#}
					{#show_block('b1',2,'','sidebar_function')#}
					{#show_block('b6',0,'','sidebar_facebook')#}
				</div>
				<!-- sidebar -->

			</div><!--body-->		
								
								
								
								
<script>
$(document).ready(function(){

		$('#email').mousedown(check_register_email);
		$('#email').keyup(check_register_email);
		
		
	}); 
	
	function check_register_email(){
		var rt = 0;
		var email=$.trim($('#email').val());
		
		if(email.length>0){
			$("#email_tip").addClass("tip").show();
			$('#email_tip_text').text('{#$CHECKING#}');
			$.get("member.php?action=ajax_checkEmail",{email:email},function(data){			
				if(data == -4){
					$("#email_tip").addClass("tip").show();
					$("#email_tip_text").html('{#$ERR_EMAIL#}')
				}else{
					$("#email_tip").removeClass("tip").hide();
					rt =  1;
				}
			});
		}else{
			$("#email_tip").addClass("tip").show();
			$("#email_tip_text").html('{#$ERR_EMAIL#}')
		}


		return rt;
	}
function check_cssby(tipmainname){

		var obj =$("#"+tipmainname+"_tip");
		if(obj.attr('class')!='tip'){
			return 1;
		}else{
			return 0;
		}
	}
function check_register(){
		if(check_cssby('email') != 1){
			$('#email').focus();
			//alert("{#$ERR_EMAIL#}");
			check_register_email();
			return false;
		}else{
		/*
			var captcha=$('#captcha').val();
			$.get("{#$selfurl#}?action=ajax_checkCaptcha",{captcha:captcha},function(data){
				if(data=='false'){
					alert("{#$ERR_CAPTCHA#}");
					$('#captcha').focus();
					$('#captcha_img').attr("src","captcha.php?t="+Math.random());
					return false;
				}else{
					$("#form1").submit();
				}
			});
			*/
			$("#form1").submit();
		}
	}
	$(document).ready(function(){
		$('#email').focus();
	}); 
</script>
{#include file="footer.php"#}